package com.example.mapper;


import com.example.demo.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select email from user where name=#{name}")
    public String findEmail(String name);

    @Select("select * from user where id=#{id}")
    public user find(Integer id);




}
